import Vue from 'vue'
import VueRouter from 'vue-router'
import filmRouter from './film'
import centerRouter from './center'
import cinemaRouter from './cinema'
import detailRouter from './detail'





// console.log(filmRouter)
Vue.use(VueRouter)

const routes = [
  filmRouter,
  centerRouter,
  cinemaRouter,
  detailRouter,
//路由重定向，让这个页面成为默认页面
//高亮问题？？？

{
  path:"/",
  redirect:"/films"

}

 
]

const router = new VueRouter({
  mode:"history",
  // base:ProcessingInstruction.env.BASE_URL,
  routes
})

export default router
